/**
 * 
 */
package com.estock.web.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.estock.common.model.security.Index;
import com.estock.common.service.impl.BaseServiceImpl;
import com.estock.web.dao.IndexDao;
import com.estock.web.service.IndexService;

/**
 * @author richard
 *
 */
@Service
public class IndexServiceImpl extends BaseServiceImpl implements IndexService {
	
	@Resource
	IndexDao indexDao;
	public IndexDao getIndexDao() {
		return indexDao;
	}
	
	@Override
	public int getIndexNum() {
		return getIndexDao().getIndexNum();
	}

	@Override
	public List<Index> findAllIndexes() {
		return getIndexDao().findAll(Index.class);
	}

}
